package com.kmxd.ams.core.common.enums;

import com.kmxd.ams.core.common.constant.ErrorCode;

/**
 * 应用渠道
 *
 * @author nickbi
 */
public enum ParamsValidateType {
  /** 应用标识 */
  NOT_NULL(ErrorCode.VALIDATE_NOT_NULL, "不能为空"),
  ILLEGAL_FORMAT(ErrorCode.VALIDATE_ILLEGAL_FORMAT, "格式不正确"),
  DATA_REPEAT(ErrorCode.VALIDATE_DATA_REPEAT, "数据重复"),
  ;

  private final String type;
  private final String name;

  ParamsValidateType(String type, String name) {
    this.type = type;
    this.name = name;
  }

  public String getType() {
    return type;
  }

  public String getName() {
    return name;
  }

  @Override
  public String toString() {
    return "ParamsValidateType{"
        + "type='"
        + type
        + '\''
        + ", name='"
        + name
        + '\''
        + "} "
        + super.toString();
  }
}
